<?php
declare (strict_types = 1);
namespace app\api\model;

use think\Collection;
use think\Model;

/**
 * @mixin \think\Model
 */
class User extends Model
{
    protected $table='ea_users';
    //查询用户详情信息
    public static function userDetails($user_id)
    {
        return self::where('id','=',"$user_id")->find();
    }
    //修改用户积分
    public static function updateUser($user_id,$where)
    {
        return self::where('id',$user_id)->update($where);
    }
    public function select($data = null): Collection
    {
        return parent::select($data); // TODO: Change the autogenerated stub
    }

    public function find($data = null)
    {
        return parent::find($data); // TODO: Change the autogenerated stub
    }
}
